package com.zhong.dagger2.di.component;

import android.app.Application;

import com.zhong.dagger2.api.ApiService;
import com.zhong.dagger2.di.module.ApiModule;
import com.zhong.dagger2.di.module.AppModule;

import javax.inject.Singleton;

import dagger.Component;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;

/*
 * 项目名:    Dagger2Test
 * 包名       com.zhong.dagger2.di.component
 * 文件名:    AppComponent
 * 创建者:    ZJB
 * 创建时间:  2017/10/14 on 22:41
 * 描述:     TODO
 */
@Singleton
@Component(modules = {ApiModule.class, AppModule.class})
public interface AppComponent {

    OkHttpClient getOkhttpClient();

    Retrofit getRetrofit();

    ApiService getApiService();

    HttpLoggingInterceptor getHttpLoggingInterceptor();

    Application getApplication();

}
